x86/time: scale host TSC in pvclock properly
authorHaozhong Zhang <haozhong.zhang@intel.com>
Tue, 19 Jan 2016 15:07:39 +0000 (16:07 +0100)
committerJan Beulich <jbeulich@suse.com>
Tue, 19 Jan 2016 15:07:39 +0000 (16:07 +0100)
commiteab8a90be723d742d607aff2005ea0ab521bfd6a
treebb61e7c98f7bc4a6cd1cb587bc278713e8c47b30
parent52fd9a46f6e9eb050a6b402ce3b04fa57907acc5
x86/time: scale host TSC in pvclock properly

This patch makes the pvclock return the scaled host TSC and
corresponding scaling parameters to HVM domains if guest TSC is not
emulated and TSC scaling is enabled.

Signed-off-by: Haozhong Zhang <haozhong.zhang@intel.com>
Reviewed-by: Boris Ostrovsky <boris.ostrovsky@oracle.com>
xen/arch/x86/time.c